package com.yjq.blog.user.service;

import com.yjq.blog.user.vo.UserLoginVO;
import com.yjq.blog.user.vo.UserRegistryVO;
import com.yjq.blog.vo.Response;

import javax.servlet.http.HttpServletRequest;

public interface LoginService {

    Response<UserLoginVO> login(String phone, Integer code);

    Response<UserLoginVO> passwordLogin(String phone, String password);

    Response getCode(String phone, String type, HttpServletRequest request);

    Response<UserLoginVO> registry(UserRegistryVO userRegistryVO);

}
